package com.androidified.personalshopper.model;

import java.lang.reflect.Type;

import android.content.Context;

import com.androidified.personalshopper.Constants;
import com.google.gson.reflect.TypeToken;
import com.littlefluffytoys.littlefluffylocationlibrary.LocationInfo;

public class LocationInfoModel {
	
	public static LocationInfo getCache(Context context) {
	    final Type listType = new TypeToken<LocationInfo>() {}.getType();
		return CacheModel.retrieve(context, Constants.LOCATION_INFO_CACHE, listType);
	}
	
	public static boolean storeCache(Context context, LocationInfo content) {
		return CacheModel.store(context, Constants.LOCATION_INFO_CACHE, content);
	}
	
}
